/*
 * @Author: Collin colin.w.cai@hotmail.com
 * @Date: 2022-07-17 23:00:07
 * @LastEditors: Collin colin.w.cai@hotmail.com
 * @LastEditTime: 2022-09-13 15:05:31
 * @FilePath: /linn-go-practice/xxorm/copilot.go
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package xxorm

//找寻一个数组中字符数量最大的元素
func FindMax(arr []string) string {
	var max int
	var maxStr string
	for _, v := range arr {
		if len(v) > max {
			max = len(v)
			maxStr = v
		}
	}
	return maxStr
}

//根据历史数据计算下一期7位数彩票开奖数字并返回值
